﻿using BCCommon.TMS.FreightEnums;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.TMS.FreightContact
{
    /// <summary>
    /// 货运常用联系人
    /// </summary>
    public class FreightContactEntity
    {
        /// <summary>
        /// 货运常用联系人Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string FreightContactId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 联系人姓名首字母
        /// </summary>
        public string ContactInitials { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        public string ContactName { get; set; }
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string ContactPhone { get; set; }
        /// <summary>
        /// 联系人类型
        /// </summary>
        public FreightContactType ContactType { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
